-- GENERATED SPELL FOR [Ebon Blade Vindicator] --


function spell0_32488(pUnit, Event) --@Blood Strike,n/a--
pUnit:FullCastSpellOnTarget(59130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32488', 647, 1)
end

function spell1_32488(pUnit, Event) --@Death Coil,n/a--
pUnit:FullCastSpellOnTarget(59134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32488', 607, 1)
end

function spell2_32488(pUnit, Event) --@Death Grip,n/a--
pUnit:FullCastSpellOnTarget(49576,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32488', 0, 1)
end

function spell3_32488(pUnit, Event) --@Icy Touch,n/a--
pUnit:FullCastSpellOnTarget(59131,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32488', 20000, 1)
end

function spell4_32488(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(59133,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32488', 12000, 1)
end

function Sorts_32488(pUnit, Event)
local choix_sorts_32488 = math.random(0, 4)
if choix_sorts_32488 == 0 then
pUnit:RegisterEvent('spell0_32488', 1, 1)
end
if choix_sorts_32488 == 1 then
pUnit:RegisterEvent('spell1_32488', 1, 1)
end
if choix_sorts_32488 == 2 then
pUnit:RegisterEvent('spell2_32488', 1, 1)
end
if choix_sorts_32488 == 3 then
pUnit:RegisterEvent('spell3_32488', 1, 1)
end
if choix_sorts_32488 == 4 then
pUnit:RegisterEvent('spell4_32488', 1, 1)
end
end

function mob32488_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32488', math.random(1500, 3000), 1)
end

function mob32488_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32488_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32488_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32488, 1, 'mob32488_Action')
RegisterUnitEvent(32488, 2, 'mob32488_Leave')
RegisterUnitEvent(32488, 3, 'mob32488_Kill')
RegisterUnitEvent(32488, 4, 'mob32488_Die')
